﻿@model List<ScrumPilot.Domain.Models.CheckOutFile>
@if (Model != null && Model.Count() > 0)
{
    <h3 class="ZeroPad">
        Pending changes</h3>
    <ul>
        @foreach (var item in Model)
        {  
            <li><a href="#" onclick='return OpenSource("@item.Name");'>@item.Name</a><p>
                <abbr class='timeago' title='@item.ISO8601Date'>
                    @item.Date</abbr>
            </p>
                @if (item.OwnerID != null)
                {
                    <p>
                        lock/use by <a href="@Url.Action("UserView","Home")/@item.OwnerID">@item.OwnerName</a></p>
                }
            </li>
        }
    </ul>
}
else
{
    <h3>
        No pending change</h3>
}
